home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hasbro Interactive: 2000 Press Disc (USA)
/
Hasbro Interactive - 2000 Press Disc (USA).bin
/
thumbs8
/
kids.dir
/
00007_Script_7
< prev
next >
Wrap
Text File
|
2000-05-06
|
732b
|
26 lines
-- Generic Button Handler
property spriteNum
on mouseUp
set cDriveLetter = char 1 of getOSDirectory()
if (sprite(2).type) then -- if sprite 2 is art
set defaultFileName = sprite(2).member.name
else --otherwise export text in sprite 4
set defaultFileName = sprite(4).member.name
end if
set newFilePathName = doFileSaveDialog("Save As", cDriveLetter & ":\My Documents\"& defaultFileName)
if (newFilePathName = EMPTY) then return() -- Error occurred & user was alerted, or user pressed Cancel.
-- Guarantee: user wants to save, and we have a valid, non-occupied filePathName.
fileCopy(the moviePath & "Masters\"& defaultFileName,newFilePathName)
end